import request from "@/utils/request";

//燃油费率配置-列表
export function getFuelRateList(data) {
  return request({
    url: "/sys/fuel-rate/index",
    method: "POST",
    data
  });
}
//燃油费率配置-详情
export function getFuelRateDetail(params) {
  return request({
    url: "/sys/fuel-rate/detail",
    method: "get",
    params
  });
}
//燃油费率配置-创建
export function createFuelRate(data) {
  return request({
    url: "/sys/fuel-rate/create",
    method: "POST",
    data
  });
}
//燃油费率配置-编辑
export function updateFuelRate(data) {
  return request({
    url: "/sys/fuel-rate/update",
    method: "POST",
    data
  });
}
//燃油费率配置-删除
export function deleteFuelRate(data) {
  return request({
    url: "/sys/fuel-rate/delete",
    method: "POST",
    data
  });
}
//燃油费率配置-启用禁用
export function updateFuelRateStatus(data) {
  return request({
    url: "/sys/fuel-rate/status",
    method: "POST",
    data
  });
}
//燃油费率配置-同步
export function syncFuelRate(data) {
  return request({
    url: "/sys/fuel-rate/sync",
    method: "POST",
    data
  });
}
//燃油费率配置-获取当前燃油费率
export function getFuelRate(data) {
  return request({
    url: "/sys/fuel-rate/get-current-fuel",
    method: "POST",
    data
  });
}